package com.example.system.constant;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @author 王令
 * @since 2022/8/13 15:10
 */
@Getter
@RequiredArgsConstructor
public enum AuthoritiesEnum {
    //0: 菜单，1:后端接口权限
    MENU(0),
    PERMISSION(1)
    ;
    private final Integer TYPE;

    public Boolean equals(Integer type) {
        return TYPE.equals(type);
    }

    public static Boolean isMenu(Integer type) {
        return MENU.equals(type);
    }

    public static Boolean isPermission(Integer type) {
        return PERMISSION.equals(type);
    }

}
